<?php

namespace Acme\ContestBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Acme\ContestBundle\Entity\ConstWorkType
 *
 * @ORM\Table(name="const_work_type")
 * @ORM\Entity
 */
class ConstWorkType
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string $name
     *
     * @ORM\Column(name="name", type="string", length=255, nullable=true)
     */
    private $name;

    /**
     * @var integer $contestId
     *
     * @ORM\Column(name="contest_id", type="integer", nullable=true)
     */
    private $contestId;

    /**
     * @var string $flag
     *
     * @ORM\Column(name="flag", type="string", length=1, nullable=true)
     */
    private $flag;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set contestId
     *
     * @param integer $contestId
     */
    public function setContestId($contestId)
    {
        $this->contestId = $contestId;
    }

    /**
     * Get contestId
     *
     * @return integer 
     */
    public function getContestId()
    {
        return $this->contestId;
    }

    /**
     * Set flag
     *
     * @param string $flag
     */
    public function setFlag($flag)
    {
        $this->flag = $flag;
    }

    /**
     * Get flag
     *
     * @return string 
     */
    public function getFlag()
    {
        return $this->flag;
    }
}